﻿using System;
using System.Collections.Generic;
using System.Text;

namespace System.Data.SugarClient.Soap.V1
{
	internal abstract class V1SessionAction : V1Action, ISugarSoapSessionAction
	{

		#region Constructors

		internal V1SessionAction(
			SugarSoapV1.sugarsoap service,
			string session)
			: base(service) 
		{
			this._session = session;
		}

		#endregion

		#region Fields

		private readonly string _session;

		#endregion

		#region Properties

		public string Session
		{
			get { return _session; }
		}

		#endregion

	}

	internal abstract class V1SessionActionResult : V1ActionResult, ISugarSoapSessionActionResult
	{

		#region Constructors

		internal V1SessionActionResult(
			V1SessionAction action)
			: base(action)
		{
		}

		#endregion

		#region Properties

		public ISugarSoapSessionAction Action
		{
			get { return base.Action as ISugarSoapSessionAction; }
		}

		#endregion

	}
}
